package com.shopping.service.impl;

import java.util.List;

import com.shopping.bean.Goods;
import com.shopping.dao.UserHobbyDao;
import com.shopping.dao.impl.UserHobbyDaoImpl;
import com.shopping.service.UserHobbyService;

public class UserHobbyServiceImpl implements UserHobbyService {

	UserHobbyDao userHobbyDao = new UserHobbyDaoImpl();
	
	@Override
	public List<Goods> getGoods(int goodsId) {
		return userHobbyDao.selectGoods(goodsId);
	}

	@Override
	public List<Integer> getGoodsId(int userId) {
		return userHobbyDao.selectGoodsId(userId);
	}

}
